Optimal. Leaf size=44 \[ \frac{4 a^2 \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right )}{d}+\frac{2 a^2 \sin (c+d x)}{d \sqrt{\cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.109488, antiderivative size = 44, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.217, Rules used = {4264, 3788, 3771, 2641, 4043} \[ \frac{4 a^2 F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{2 a^2 \sin (c+d x)}{d \sqrt{\cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4264
Rule 3788
Rule 3771
Rule 2641
Rule 4043
Rubi steps
\begin{align*} \int \sqrt{\cos (c+d x)} (a+a \sec (c+d x))^2 \, dx &=\left (\sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \frac{(a+a \sec (c+d x))^2}{\sqrt{\sec (c+d x)}} \, dx\\ &=\left (\sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \frac{a^2+a^2 \sec ^2(c+d x)}{\sqrt{\sec (c+d x)}} \, dx+\left (2 a^2 \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \sqrt{\sec (c+d x)} \, dx\\ &=\frac{2 a^2 \sin (c+d x)}{d \sqrt{\cos (c+d x)}}+\left (2 a^2\right ) \int \frac{1}{\sqrt{\cos (c+d x)}} \, dx\\ &=\frac{4 a^2 F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{2 a^2 \sin (c+d x)}{d \sqrt{\cos (c+d x)}}\\ \end{align*}
Mathematica [A] time = 0.177608, size = 39, normalized size = 0.89 \[ \frac{2 a^2 \left (2 \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right )+\frac{\sin (c+d x)}{\sqrt{\cos (c+d x)}}\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 1.662, size = 104, normalized size = 2.4 \begin{align*} -4\,{\frac{{a}^{2} \left ({\it EllipticF} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) \sqrt{2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}\sqrt{ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}- \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}\cos \left ( 1/2\,dx+c/2 \right ) \right ) }{\sin \left ( 1/2\,dx+c/2 \right ) \sqrt{2\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sec \left (d x + c\right ) + a\right )}^{2} \sqrt{\cos \left (d x + c\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a^{2} \sec \left (d x + c\right )^{2} + 2 \, a^{2} \sec \left (d x + c\right ) + a^{2}\right )} \sqrt{\cos \left (d x + c\right )}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} a^{2} \left (\int 2 \sqrt{\cos{\left (c + d x \right )}} \sec{\left (c + d x \right )}\, dx + \int \sqrt{\cos{\left (c + d x \right )}} \sec ^{2}{\left (c + d x \right )}\, dx + \int \sqrt{\cos{\left (c + d x \right )}}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sec \left (d x + c\right ) + a\right )}^{2} \sqrt{\cos \left (d x + c\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]